﻿<Window x:Class="IM.Client.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="集成开发平台统一登陆" Height="350" Width="525" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="80"></RowDefinition>
            <RowDefinition Height="*" ></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.Background>
            <ImageBrush ImageSource="Images\Login.png">
            </ImageBrush>
        </Grid.Background>
        <Grid Grid.Row="0">
            <Image Source="Images\Im_2.png" HorizontalAlignment="Left" ></Image>
            <TextBlock  Name="systemName" Margin="0,0,0,0" Text="HS统一应用平台系统管理" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Foreground="White" />
            <Image Source="Images\button_Close.png" HorizontalAlignment="Right"  Width="48" Height="48" Margin="0,-35,0,0" MouseLeftButtonDown="Image_MouseLeftButtonDown"></Image>
        </Grid>
        <Grid Grid.Row="1" >
            <Image  Name="image1" Stretch="Fill" Width="128" Height="128" Margin="0,-40,0,0"  HorizontalAlignment="Left" Source="Images\Keys-icon.png"/>
            <Label Content="用户名："  Height="28" Width="70"  Margin="138,40,0,0" Name="label1" VerticalAlignment="Top" HorizontalAlignment="Left"  FontSize="16" Foreground="White" />
            <TextBox  Height="28"  Margin="218,40,0,0" Name="txtUserName"  Width="180" FontSize="16"  VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <Label Content="密   码：" Height="28" Width="70"  Margin="138,80,0,0" Name="label2" FontSize="16" Foreground="White"  VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <TextBox Height="28"  Margin="218,80,0,0" Name="txtPassWord"  Width="180" FontSize="16"  VerticalAlignment="Top" HorizontalAlignment="Left"/>
            <ComboBox Height="28" HorizontalAlignment="Left" Margin="285,135,0,0" Name="cmbLoginState" VerticalAlignment="Top"  Width="75"  >
                <ComboBoxItem>[在线]</ComboBoxItem>
                <ComboBoxItem>[隐身]</ComboBoxItem>
                <ComboBoxItem>[离开]</ComboBoxItem>
            </ComboBox>
            <Button  Height="28" HorizontalAlignment="Left" Margin="360,135,0,0" Name="btnLogin" VerticalAlignment="Top" Width="75" FontSize="16" Click="btnLogin_Click">
                <Button.Background>
                    <ImageBrush ImageSource="Images\LoginButton.png"></ImageBrush>
                </Button.Background>
            </Button>
        </Grid>
        </Grid>
</Window>
